/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.repository;

import com.darren.euc.entity.Dept;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/17
 */
public interface DeptRepository extends JpaRepository<Dept,Integer>{

    List<Dept> findByClientIdAndParentIdNot(Integer clientId, Integer pid);

    List<Dept> findByClientIdAndStatus(Integer clientId, Integer normal);

    List<Dept> findByClientIdAndParentIdNotAndStatus(Integer clientId, int i, Integer normal);
}
